import { getRequest, postRequest, deleteRequest } from './../utils/request'
export function queryAssetList (params) {
  return getRequest('/asset', params)
}
export function queryAsset (params) {
  return getRequest('/asset/one', params)
}
export function upsertAsset (params) {
  return postRequest('/asset/upsert', params)
}
export function countByMonth (params) {
  return getRequest('/asset/count/month', params)
}
export function deleteAsset (params) {
  return deleteRequest('/asset', params)
}
export function queryLiabilitiesList (params) {
  return getRequest('/liabilities', params)
}
export function queryLiabilities (params) {
  return getRequest('/liabilities/one', params)
}
export function upsertLiabilities (params) {
  return postRequest('/liabilities/upsert', params)
}
export function deleteLiabilities (params) {
  return deleteRequest('/liabilities', params)
}
export function queryIncomeList (params) {
  return getRequest('/income', params)
}
export function upsertIncome (params) {
  return postRequest('/income/upsert', params)
}
export function deleteIncome (params) {
  return deleteRequest('/income', params)
}
export function queryBorrowingList (params) {
  return getRequest('/borrowing', params)
}
export function upsertBorrowing (params) {
  return postRequest('/borrowing/upsert', params)
}
export function deleteBorrowing (params) {
  return deleteRequest('/borrowing', params)
}
export function queryInvestmentList (params) {
  return getRequest('/investment', params)
}
export function deleteInvestment (params) {
  return deleteRequest('/investment', params)
}
export function upsertInvestment (params) {
  return postRequest('/investment/upsert', params)
}
export function querySummary (params) {
  return getRequest('/summary', params)
}

export function queryNameTextList (params) {
  return getRequest('/nameText', params)
}

export function upsertNameText (params) {
  return postRequest('/nameText/upsert', params)
}
export function deleteNameText (params) {
  return deleteRequest('/nameText', params)
}
export function deleteAllNameText (params) {
  return deleteRequest('/nameText/all', params)
}
export function verifyLogin (params) {
  return getRequest('/verify', params)
}
export function login (params) {
  return postRequest('/login', params)
}
export function register (params) {
  return postRequest('/registe', params)
}

export function checkEmail (params) {
  return getRequest('/checkEmail', params)
}
export function queryLoginUser (params) {
  return getRequest('/user/loginUser', params)
}
export function insertUser (params) {
  return postRequest('/user/add', params)
}
export function updateUser (params) {
  return postRequest('/user/update', params)
}
export function updateUserPassword (params) {
  return postRequest('/user/updatePassword', params)
}
export function queryNetAssets (params) {
  return getRequest('/netAssets', params)
}
export function minimizeWindow () {
  return postRequest('/window/mini')
}
export function expendWindow () {
  return postRequest('/window/expend')
}
export function closeWindow () {
  return postRequest('/window/close')
}
